package com.example.aopdemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("demo")
public class DemoController {

    @GetMapping("index")
    public String index(){
        String str="";
        for (int i = 0; i < 10000; i++) {
            str+=i;
        }
//        System.out.println("我在控制器index方法中");
        return "我在控制器index方法中";
    }
}
